//
//  ChooseGiftView.m
//  GiftNote
//
//  Created by wsh on 15/8/19.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "ChooseGiftView.h"
#import "Screen.h"


@implementation ChooseGiftView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, 0, frame.size.width - 80, frame.size.height)];
        titleLabel.text = @"选礼神器";
        
        UIImageView *firstView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 30, 30)];
        firstView.image = [UIImage imageNamed:@"iconfont-jiahao"];
        
        UIImageView *lastView = [[UIImageView alloc] initWithFrame:CGRectMake(frame.size.width - 30, 5, 30, 30)];
        lastView.image = [UIImage imageNamed:@"iconfont-youyou"];
        
        UIImageView *backView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        
        backView.backgroundColor = [UIColor colorWithRed:220/256.0 green:240/256.0 blue:240/256.0 alpha:0.8];
    
        [self addSubview:backView];
        [self addSubview:titleLabel];
        [self addSubview:firstView];
        [self addSubview:lastView];
    }
    return self;
}



@end
